
<%@page import="wt.session.SessionServerHelper"%>
<%@page import="wt.fc.ReferenceFactory"%>
<%@page import="wt.session.SessionHelper"%>
<%@page import="wt.workflow.work.WorkflowHelper"%>
<%@page import="wt.workflow.engine.WfActivity"%>
<%@page import="wt.doc.WTDocument"%>
<%@page import="wt.fc.Persistable"%>
<%@page import="wt.fc.QueryResult"%>
<%@page import="wt.fc.PersistenceHelper"%>
<%@page import="wt.workflow.work.WorkItem"%>
<%@page import="wt.query.QuerySpec"%><%@page import="shmged.com.shlcm.workflow.*"%>
<%@page import="org.json.JSONArray"%>
<%@page import="org.json.JSONObject"%>
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%


	String result = "";
try{
	 result = CmWorkFlowHelper.getWorkItemByUser(request);
	 
}catch(Exception e){	
	 e.printStackTrace();
	 JSONObject retJson = new JSONObject();
	 retJson.put("total", 0);
	 retJson.put("rows", new JSONArray());
	 result = retJson.toString();
	 
}

out.println(result);
out.flush();
%>
